package com.ruoyi.parcel.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.parcel.mapper.EOrderProcessMapper;
import com.ruoyi.parcel.domain.EOrderProcess;
import com.ruoyi.parcel.service.IEOrderProcessService;

/**
 * EOrderProcessService业务层处理
 *
 * @author ruoyi
 * @date 2024-11-26
 */
@Service
public class EOrderProcessServiceImpl implements IEOrderProcessService
{
    @Autowired
    private EOrderProcessMapper eOrderProcessMapper;

    /**
     * 查询EOrderProcess
     *
     * @param id EOrderProcess主键
     * @return EOrderProcess
     */
    @Override
    public EOrderProcess selectEOrderProcessById(Long id)
    {
        return eOrderProcessMapper.selectEOrderProcessById(id);
    }

    /**
     * 查询EOrderProcess列表
     *
     * @param eOrderProcess EOrderProcess
     * @return EOrderProcess
     */
    @Override
    public List<EOrderProcess> selectEOrderProcessList(EOrderProcess eOrderProcess)
    {
        return eOrderProcessMapper.selectEOrderProcessList(eOrderProcess);
    }

    /**
     * 新增EOrderProcess
     *
     * @param eOrderProcess EOrderProcess
     * @return 结果
     */
    @Override
    public int insertEOrderProcess(EOrderProcess eOrderProcess)
    {
        return eOrderProcessMapper.insertEOrderProcess(eOrderProcess);
    }

    /**
     * 修改EOrderProcess
     *
     * @param eOrderProcess EOrderProcess
     * @return 结果
     */
    @Override
    public int updateEOrderProcess(EOrderProcess eOrderProcess)
    {
        return eOrderProcessMapper.updateEOrderProcess(eOrderProcess);
    }

    /**
     * 批量删除EOrderProcess
     *
     * @param ids 需要删除的EOrderProcess主键
     * @return 结果
     */
    @Override
    public int deleteEOrderProcessByIds(Long[] ids)
    {
        return eOrderProcessMapper.deleteEOrderProcessByIds(ids);
    }

    /**
     * 删除EOrderProcess信息
     *
     * @param id EOrderProcess主键
     * @return 结果
     */
    @Override
    public int deleteEOrderProcessById(Long id)
    {
        return eOrderProcessMapper.deleteEOrderProcessById(id);
    }

    @Override
    public List<EOrderProcess> selectByOrderNumber(String orderNumber) {
        return eOrderProcessMapper.selectByOrderNumber(orderNumber);
    }
}
